home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ply15dat.zip / ALPHAMAP.PI < prev    next >
Text File  |  1992-09-19  |  947b  |  47 lines

  1. // Sample Polyray file
  2. // A gradient texture with changing 'alpha' values
  3. //
  4. viewpoint {
  5.    from <0, 5, -10>
  6.    at <0,2,0>
  7.    up <0,1,0>
  8.    angle 35
  9.    resolution 160, 80
  10.    aspect 2
  11.    }
  12.  
  13. include "..\colors.inc"
  14. include "..\texture.inc"
  15.  
  16. background midnightblue
  17.  
  18. light <-10, 7, -5>
  19.  
  20. object {
  21.    disc <0, -0.005, 0>, <0, 1, 0>, 10
  22.    texture { checker matte_white, matte_black }
  23.    }
  24.  
  25. object {
  26.    sphere <0, 0, 0>, 2
  27.    texture {
  28.       noise surface {
  29.      ambient 0.2
  30.      diffuse 0.8
  31.      specular 0.2
  32.      turbulence 0.2
  33.      position_fn position_objectx
  34.      color_map(
  35.         [-2,   0,   blue,  0.8, blue,  0.8]
  36.         [-1,   0.5, green, 0.5, green, 0.5]
  37.         [ 0.5, 1.0, green, 0.5, tan,   0]
  38.         [ 1.0, 1.7, tan,   tan]
  39.         [ 1.7, 2,   white, white])
  40.      }
  41.       rotate <0, 0, 90>
  42.       scale <1, 1, 1>
  43.       }
  44.    translate <0, 2, 0>
  45.    shading_flags primary_rays + shadow_check + transmit_check + cast_shadows
  46.    }
  47.